package ch1;

import java.util.Scanner;

public class BoolTest {

	public static void main(String[] args) {
		// 布尔类型
		boolean f = false;
		System.out.println(f);
		boolean b;
		b = 2 > 1;
		System.out.println(b);
		int i, j;// 分别表示老张和老徐的存款
		Scanner in = new Scanner(System.in);
		System.out.println("老张的存款：");
		i = in.nextInt();
		System.out.println("老徐的存款：");
		j = in.nextInt();
		boolean rich = i > j;
		System.out.println("老张比老徐富有吗？" + rich);
	}

}
